package com.migo.utils;

import com.migo.log.SystemLog;
import com.migo.log.SystemLogRunnable;

import java.util.concurrent.ExecutorService;

public class MessageQueueUtil {
    public static void pushMessageToQueue(SystemLog systemLog) {
        // 创建线程池
        ExecutorService executorService = ThreadPoolUtils.getThreadPool();
        executorService.execute(new SystemLogRunnable(systemLog));
    }
}
